import React, { useEffect, useState } from "react";
import config from "../../../config/index";
type Props = {};

export default function register({}: Props) {
  const WeChatAuthorizationURL = config.codeUrl;
  useEffect(() => {
    // 在组件渲染后模拟点击跳转
    const a = document.createElement("a");
    a.href = WeChatAuthorizationURL;
    a.click();
  }, []);

  return (
    <div >
    </div>
  );
}
